<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
    <script>
        $(function () {
            $(document).on('click', function () {
                console.log('document');
            })
            $('div').on('click', function (e) {
                console.log('div');
                // 阻止事件冒泡 和原生的差不多
                e.stopPropagation()
                // 阻止默认行为
                // e.preventDefault()
            })
        })
    </script>
</head>

<body>
    <div>1</div>
</body>

</html>